package com.lzdongrui.common.core.domain.entity;

import com.lzdongrui.common.annotation.Excel;
import com.lzdongrui.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.List;
import java.util.Set;

public class ClientUser extends BaseEntity {

    /** 学生id */
    private Long id;

    /** 学号 */
    @Excel(name = "学号")
    private Long sno;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 班级名称 */
    @Excel(name = "班级名称")
    private String gradeName;

    /** 班级id */
    @Excel(name = "班级id")
    private Long gradeId;

    /** 性别 */
    @Excel(name = "性别")
    private Integer gender;

    /** 密码 */
    private String password;

    /** 电话号码 */
    @Excel(name = "电话号码")
    private String phone;

    /** 年级 */
    @Excel(name = "年级")
    private Long schoolYear;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String mail;

    /** 家庭地址 */
    @Excel(name = "家庭地址")
    private String location;

    /** 是否在校 */
    private Integer isAtSchool;

    private List<ClientRole> clientRoles;


    public ClientUser() {
    }

    public ClientUser(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSno() {
        return sno;
    }

    public void setSno(Long sno) {
        this.sno = sno;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public void setGradeId(Long gradeId) {
        this.gradeId = gradeId;
    }

    public Long getGradeId() {
        return gradeId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public List<ClientRole> getClientRoles() {
        return clientRoles;
    }

    public void setClientRoles(List<ClientRole> clientRoles) {
        this.clientRoles = clientRoles;
    }

    public Long getSchoolYear() {
        return schoolYear;
    }

    public void setSchoolYear(Long schoolYear) {
        this.schoolYear = schoolYear;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public Integer getIsAtSchool() {
        return isAtSchool;
    }

    public void setIsAtSchool(Integer isAtSchool) {
        this.isAtSchool = isAtSchool;
    }
}
